/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package eproject_sem2;

import javax.swing.JInternalFrame;

/**
 *
 * @author ZER0
 */
public class Show_price_weight extends javax.swing.JFrame {

    ListOfPrice_Sever a = new ListOfPrice_Sever();

    public JInternalFrame getItfPricesWeight() {
        return itfPricesWeight;
    }

    /**
     * Creates new form Show_price_weight
     */
    public Show_price_weight() {
        initComponents();

        a.ShowTable("STTW", "GroupWeightID", "GroupWeightName", "PriceOfGroupWeight", "Prices_by_weight", tbPIByWeightE);
    }

    /**
     * This method is called from within the constructor to initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is always
     * regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        itfPricesWeight = new javax.swing.JInternalFrame();
        jpPIByWeightE = new javax.swing.JPanel();
        jScrollPane2 = new javax.swing.JScrollPane();
        tbPIByWeightE = new javax.swing.JTable();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        itfPricesWeight.setClosable(true);
        itfPricesWeight.setVisible(true);

        jpPIByWeightE.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createEmptyBorder(1, 1, 1, 1), "Price information by weight", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 0, 12))); // NOI18N

        tbPIByWeightE.setModel(new javax.swing.table.DefaultTableModel(
            new Object [][] {
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null},
                {null, null, null, null}
            },
            new String [] {
                "STTW", "GroupWeightID", "GroupWeightName", "PriceOfGroupWeight"
            }
        ));
        tbPIByWeightE.addMouseListener(new java.awt.event.MouseAdapter() {
            public void mouseClicked(java.awt.event.MouseEvent evt) {
                tbPIByWeightEMouseClicked(evt);
            }
        });
        jScrollPane2.setViewportView(tbPIByWeightE);

        javax.swing.GroupLayout jpPIByWeightELayout = new javax.swing.GroupLayout(jpPIByWeightE);
        jpPIByWeightE.setLayout(jpPIByWeightELayout);
        jpPIByWeightELayout.setHorizontalGroup(
            jpPIByWeightELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 834, Short.MAX_VALUE)
        );
        jpPIByWeightELayout.setVerticalGroup(
            jpPIByWeightELayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 488, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout itfPricesWeightLayout = new javax.swing.GroupLayout(itfPricesWeight.getContentPane());
        itfPricesWeight.getContentPane().setLayout(itfPricesWeightLayout);
        itfPricesWeightLayout.setHorizontalGroup(
            itfPricesWeightLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jpPIByWeightE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );
        itfPricesWeightLayout.setVerticalGroup(
            itfPricesWeightLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(jpPIByWeightE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(itfPricesWeight)
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addComponent(itfPricesWeight, javax.swing.GroupLayout.Alignment.TRAILING)
        );

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void tbPIByWeightEMouseClicked(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_tbPIByWeightEMouseClicked
        // TODO add your handling code here:
    }//GEN-LAST:event_tbPIByWeightEMouseClicked

    /**
     * @param args the command line arguments
 */
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JInternalFrame itfPricesWeight;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JPanel jpPIByWeightE;
    private javax.swing.JTable tbPIByWeightE;
    // End of variables declaration//GEN-END:variables
}
